package MonthGame.烟花;

import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int m = s.nextInt();
        int C = s.nextInt();
        int [][] temp = new int[m][3];
        for(int i=0;i<m;i++){
            temp[i][0] = s.nextInt();
            temp[i][1] = s.nextInt();
            temp[i][2] = s.nextInt();
        }
        Arrays.sort(temp, new Comparator<int[]>() {
            @Override
            public int compare(int[] o1, int[] o2) {
                return o1[0]-o2[0];
            }
        });
        int start = s.nextInt();
        int end = s.nextInt();
        int min = Integer.MAX_VALUE;
        while(start<end){

        }
    }
}
